﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs"
    Inherits="MyVocationSpace.ChangePassword" %>

<%@ Register Src="Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Src="Footer.ascx" TagName="footer" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>..:: MY VocationSpace ::..</title>
    <link href="css/Default.css" rel="stylesheet" type="text/css" />
    <link href="css/MyStyle.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
    <center>
        <div>
            <uc:header ID="header" runat="server" />
        </div>
        <div id="content-wrapper">
            <center>
                <div class="Content">
                    <div style="width: 700px; height: 350px; padding-top: 40px;">
                        <table cellpadding="0">
                            <tr>
                                <td align="center" style="width: 450px">
                                    <span id="idSpanMsg" runat="server" class="spanMsgs" style="display: none; width: 450px">
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td class="tdBorder">
                                    <table cellpadding="5">
                                        <tr>
                                            <td class="heading" style="width: 450px; padding: 5px;" colspan="2">
                                                Change Password
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" class="lblName">
                                                Old Password:
                                            </td>
                                            <td align="left">
                                                <div>
                                                    <asp:TextBox ID="txtOldPass" runat="server" TextMode="Password"></asp:TextBox></div>
                                                <div style="padding-top: 5px">
                                                    <asp:RequiredFieldValidator ID="rfvtxtOldPass" Display="Dynamic" ForeColor="Red"
                                                        runat="server" ControlToValidate="txtOldPass" ErrorMessage="Please enter Password"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revtxtOldPass" Display="Dynamic" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9@\$]{8,20})$"
                                                        ControlToValidate="txtOldPass" runat="server" ForeColor="Red" ErrorMessage="Invalid Password"></asp:RegularExpressionValidator>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" class="lblName">
                                                New Password:<br />
                                                <span style="font-family: Arial; color: Gray; text-align: left; font-size: 10px;
                                                    background-color: White">( Min. 8 char, must be alphanumeric.)</span>
                                            </td>
                                            <td align="left">
                                                <div>
                                                    <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password"></asp:TextBox>
                                                </div>
                                                <div style="padding-top: 5px">
                                                    <asp:RequiredFieldValidator ID="rfvtxtNewPass" Display="Dynamic" ForeColor="Red"
                                                        runat="server" ControlToValidate="txtNewPass" ErrorMessage="Please enter New Password"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revtxtNewPass" Display="Dynamic" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9@\$]{8,20})$"
                                                        ControlToValidate="txtNewPass" runat="server" ForeColor="Red" ErrorMessage="Invalid Password"></asp:RegularExpressionValidator>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" class="lblName">
                                                Confirm Password:
                                            </td>
                                            <td align="left">
                                                <div>
                                                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                </div>
                                                <div style="padding-top: 5px">
                                                    <asp:RequiredFieldValidator ID="rfvtxtConfirmPassword" Display="Dynamic" ForeColor="Red"
                                                        runat="server" ControlToValidate="txtConfirmPassword" ErrorMessage="Please enter Confirm Password"></asp:RequiredFieldValidator>
                                                    <asp:CompareValidator ID="CompareValidator1" ForeColor="Red" Display="Dynamic" runat="server"
                                                        ControlToCompare="txtNewPass" ControlToValidate="txtConfirmPassword" ErrorMessage="Password must be match"></asp:CompareValidator>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnSubmit" CssClass="formBtnEdit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </center>
        </div>
        <div style="clear: both">
        </div>
        <div>
            <uc1:footer runat="server" ID="footer"></uc1:footer>
        </div>
    </center>
    </form>
</body>
</html>
